package net.idugic.dto;

import java.io.Serializable;
import java.util.Date;

public class QueryDTO implements Serializable {

	private static final long serialVersionUID = -3508030091051251290L;

	private Integer id = null;

	private String owner_account = null;

	private Date query_time = null;

	private String query_text = null;

	private Integer active = null;

	private Integer allow_forward = null;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOwner_account() {
		return owner_account;
	}

	public void setOwner_account(String owner_account) {
		this.owner_account = owner_account;
	}

	public String getQuery_text() {
		return query_text;
	}

	public void setQuery_text(String query_text) {
		this.query_text = query_text;
	}

	public Integer getActive() {
		return active;
	}

	public void setActive(Integer active) {
		this.active = active;
	}

	public Date getQuery_time() {
		return query_time;
	}

	public void setQuery_time(Date query_time) {
		this.query_time = query_time;
	}

	public Integer getAllow_forward() {
		return allow_forward;
	}

	public void setAllow_forward(Integer allow_forward) {
		this.allow_forward = allow_forward;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final QueryDTO other = (QueryDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
